.class public abstract Lroboguice/service/RoboIntentService;
.super Landroid/app/IntentService;
.source "RoboIntentService.java"

# interfaces
.implements Lroboguice/inject/InjectorProvider;


# instance fields
.field protected a:Lroboguice/event/EventManager;

.field protected b:Lroboguice/inject/ContextScope;


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 47
    invoke-direct {p0, p1}, Landroid/app/IntentService;-><init>(Ljava/lang/String;)V

    .line 48
    return-void
.end method


# virtual methods
.method public a()Lcom/google/inject/Injector;
    .locals 1

    .prologue
    .line 88
    invoke-virtual {p0}, Lroboguice/service/RoboIntentService;->getApplication()Landroid/app/Application;

    move-result-object p0

    check-cast p0, Lroboguice/application/RoboApplication;

    invoke-virtual {p0}, Lroboguice/application/RoboApplication;->a()Lcom/google/inject/Injector;

    move-result-object v0

    return-object v0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 3
    .parameter

    .prologue
    .line 79
    invoke-virtual {p0}, Lroboguice/service/RoboIntentService;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    .line 80
    invoke-super {p0, p1}, Landroid/app/IntentService;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 81
    iget-object v1, p0, Lroboguice/service/RoboIntentService;->a:Lroboguice/event/EventManager;

    new-instance v2, Lroboguice/service/event/OnConfigurationChangedEvent;

    invoke-direct {v2, v0, p1}, Lroboguice/service/event/OnConfigurationChangedEvent;-><init>(Landroid/content/res/Configuration;Landroid/content/res/Configuration;)V

    invoke-virtual {v1, v2}, Lroboguice/event/EventManager;->a(Ljava/lang/Object;)V

    .line 82
    return-void
.end method

.method public onCreate()V
    .locals 2

    .prologue
    .line 53
    invoke-virtual {p0}, Lroboguice/service/RoboIntentService;->a()Lcom/google/inject/Injector;

    move-result-object v1

    .line 54
    const-class v0, Lroboguice/event/EventManager;

    invoke-interface {v1, v0}, Lcom/google/inject/Injector;->getInstance(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lroboguice/event/EventManager;

    iput-object v0, p0, Lroboguice/service/RoboIntentService;->a:Lroboguice/event/EventManager;

    .line 55
    const-class v0, Lroboguice/inject/ContextScope;

    invoke-interface {v1, v0}, Lcom/google/inject/Injector;->getInstance(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lroboguice/inject/ContextScope;

    iput-object v0, p0, Lroboguice/service/RoboIntentService;->b:Lroboguice/inject/ContextScope;

    .line 56
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->b:Lroboguice/inject/ContextScope;

    invoke-virtual {v0, p0}, Lroboguice/inject/ContextScope;->a(Landroid/content/Context;)V

    .line 57
    invoke-interface {v1, p0}, Lcom/google/inject/Injector;->injectMembers(Ljava/lang/Object;)V

    .line 58
    invoke-super {p0}, Landroid/app/IntentService;->onCreate()V

    .line 59
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->a:Lroboguice/event/EventManager;

    new-instance v1, Lroboguice/service/event/OnCreateEvent;

    invoke-direct {v1}, Lroboguice/service/event/OnCreateEvent;-><init>()V

    invoke-virtual {v0, v1}, Lroboguice/event/EventManager;->a(Ljava/lang/Object;)V

    .line 60
    return-void
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    .line 72
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->a:Lroboguice/event/EventManager;

    new-instance v1, Lroboguice/service/event/OnDestroyEvent;

    invoke-direct {v1}, Lroboguice/service/event/OnDestroyEvent;-><init>()V

    invoke-virtual {v0, v1}, Lroboguice/event/EventManager;->a(Ljava/lang/Object;)V

    .line 73
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->b:Lroboguice/inject/ContextScope;

    invoke-virtual {v0, p0}, Lroboguice/inject/ContextScope;->b(Landroid/content/Context;)V

    .line 74
    invoke-super {p0}, Landroid/app/IntentService;->onDestroy()V

    .line 75
    return-void
.end method

.method public onStart(Landroid/content/Intent;I)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 64
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->b:Lroboguice/inject/ContextScope;

    invoke-virtual {v0, p0}, Lroboguice/inject/ContextScope;->a(Landroid/content/Context;)V

    .line 65
    invoke-super {p0, p1, p2}, Landroid/app/IntentService;->onStart(Landroid/content/Intent;I)V

    .line 66
    iget-object v0, p0, Lroboguice/service/RoboIntentService;->a:Lroboguice/event/EventManager;

    new-instance v1, Lroboguice/service/event/OnStartEvent;

    invoke-direct {v1}, Lroboguice/service/event/OnStartEvent;-><init>()V

    invoke-virtual {v0, v1}, Lroboguice/event/EventManager;->a(Ljava/lang/Object;)V

    .line 67
    return-void
.end method
